feat(desktop): add local provider allowance indicator#2765
Open
NYTEMODEONLY wants to merge 4 commits into
Open
feat(desktop): add local provider allowance indicator#2765NYTEMODEONLY wants to merge 4 commits into
NYTEMODEONLY wants to merge 4 commits into
Conversation
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
…ndicator Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
NYTEMODEONLY
marked this pull request as ready for review
July 26, 2026 00:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Closes #2764.
rateLimitsByLimitIdresponses while retaining the legacy fallbackWhy
Users should be able to see the constraining window on their personal AI provider allowance without leaving Buzz. The architecture remains provider-neutral without pretending that organization API billing, agent token/cost history, or scraped consumer pages are equivalent to personal subscription allowance.
This is complementary to #2035: that PR covers agent token/cost history from NIP-AM; this PR reads the signed-in user's local provider allowance. It deliberately does not add a
/usagecommand or duplicate that agent-usage surface.Privacy
The preview is disabled by default. When a user opts in, the Codex adapter reuses the existing local Codex sign-in. Buzz stores only the non-secret provider preference. No credentials, raw responses, account identifiers, or provider error bodies cross IPC or enter logs, analytics, crash payloads, or Nostr. Only provider, product, source, plan, normalized windows, optional totals, and freshness reach the frontend. Claude and Grok expose capability metadata only and make no provider calls.
Validation
Exact head:
9e2dad3ad142b182b7301a979394fc581dab5153just cipassed against the exact committed SHAgit diff --checkpassedCo-authored-byandSigned-off-bytrailers are presentThe same hardening commit is also carried in the isolated Canary branch at
4e40792f5af421c702031449e57e64bae1d35983; its fulljust cirun passed independently before push.Manual test
Deferred